﻿<UserControl xmlns:my="clr-namespace:Infragistics.Windows.DataPresenter;assembly=InfragisticsWPF4.DataPresenter.v10.3"  x:Class="TableView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" >
        <Button Command="{Binding}" CommandParameter="Update"  Content="Mettre A Jour" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10" Padding="5" />
            <Button Command="{Binding}" CommandParameter="Synchronize"  Content="Synchroniser" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10" Padding="5" />
            <Button Command="{Binding}" CommandParameter="SynchronizeAll"  Content="Synchroniser toutes les tables" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10" Padding="5" />
        </StackPanel>
        <!--<DataGrid IsReadOnly="True" Grid.Row="1" Name="DGrid" ItemsSource="{Binding Data}"/>-->
        <!--<my:XamDataGrid   DataSource="{Binding Data}"/>-->
        <ContentControl Grid.Row="1" Content="{Binding DataXam}" />
    </Grid>
</UserControl>
